/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cf.dao.impl;
import com.cf.modelo.*;
import com.cf.util.HibernateUtil;
import java.util.List;
import org.hibernate.Session;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**
 *
 * @author Soltecn2
 */
@Service
@Transactional
public class TbTareaDao {
    public static List<TbTarea> listTarea(Integer b) {
     Session session = HibernateUtil.getSessionFactory().getCurrentSession();
        session.beginTransaction();        
        return session.createQuery("from TbTarea where tbSubcategoria="+b).list();

    }
}
